package xin.nick.demo.common;

/**
 * @author Nick
 * @date 2021/5/22
 * @description 返回代码枚举类
 */
public enum ResultCodeEnum {
    OK(0,"ok"),
    PARAMS_ERROR(400, "isv.INVALID_PARAMETERS"),
    SERVER_ERROR(500, "isv.SERVER_ERROR")
    ;
    public String msg;
    public int code;


    ResultCodeEnum() {
        this.code = 0;
        this.msg = "ok";
    }

    ResultCodeEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
